/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author PR
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WmsUpLog extends BasicModel<WmsUpLog> {
  cbustype?: string; // 业务类型
  cbuskey?: string; // 业务jey
  cinvcode?: string; // 存货编码
  cinvname?: string; // 存货名称
  cbatch?: string; // 批次
  iqty?: number; // 数量
  cposcode?: string; // 货位
}

export const wmsUpLogList = (params?: WmsUpLog | any) =>
  defHttp.get<WmsUpLog>({ url: adminPath + '/log/up/wmsUpLog/list', params });

export const wmsUpLogListData = (params?: WmsUpLog | any) =>
  defHttp.post<Page<WmsUpLog>>({ url: adminPath + '/log/up/wmsUpLog/listData', params });

export const wmsUpLogForm = (params?: WmsUpLog | any) =>
  defHttp.get<WmsUpLog>({ url: adminPath + '/log/up/wmsUpLog/form', params });

export const wmsUpLogSave = (params?: any, data?: WmsUpLog | any) =>
  defHttp.postJson<WmsUpLog>({ url: adminPath + '/log/up/wmsUpLog/save', params, data });

export const wmsUpLogDelete = (params?: WmsUpLog | any) =>
  defHttp.get<WmsUpLog>({ url: adminPath + '/log/up/wmsUpLog/delete', params });
